<?php

namespace app\validate;

use share\validate\SceneValidate;

class HelpProblemInfoValidate extends SceneValidate{
    protected $rule = [
        'id' => 'require|integer',    
        'type' => 'require|max:100', 
        'vendor' =>  'require|max:100', 
        'language' =>  'require|max:10', 
        'title' => 'require|max:200',
        'description' => 'require|max:2000',
        'lang' =>  'require|max:10', 
        'type' =>  'require|max:10',
    ];    

    protected $sceneRules = [
        'edit' => [
            'id' => 'require|integer',    
            'type' => 'max:100',       
            'title' => 'max:200',
            'description' => 'max:2000',
        ],

    ];

    protected $scene = [
        'doc' => ['vendor', 'language'],
        'type' => ['type'],
        'detail' => ['id'],
        'add' => ['type','title','language','description'],
        'edit' => ['id','type','title','description'],
        'del' => ['id'],
        'hotList' => ['lang'],
        'typeList' => ['lang','type'],

    ];
}